/* 
 * 版权声明：暂无
 * 文件名称：all.js
 * 创建者：张文超
 * 创建日期：2017.12.01
 * 文件描述：
 * */
//JavaScript代码区域
layui.use(['form', 'layedit', 'laydate', 'upload', 'element','table','tree','laypage'], function() {
	var element = layui.element,
		form = layui.form,
		layer = layui.layer,
		table = layui.table,
		layedit = layui.layedit,
		laydate = layui.laydate,
		laypage = layui.laypage,
		upload = layui.upload,
		$ = layui.$;
		
	$(window).resize(function(){
		$(".layui-table").css({"width":"100%"});
	});
	//刷新页面
	$(".freshBtn").click(function(){
		window.location.reload();
	});
	//弹框的取消按钮
	$(".cancelBtn").click(function(){
		var index = parent.layer.getFrameIndex(window.name);
		parent.layer.close(index);
	});
	// 执行多个laydate实例
	$(".layui-date").each(function() {
		laydate.render({
			elem: this //指定元素
			,type: 'datetime'
			,format: 'yyyy-MM-dd HH:mm:ss'
		});
	});
	//点击查看大图
    layer.photos({
        photos: '#pics-wrap',
        area: ['60%','auto'],
        shift:7,
        closeBtn:true
    });
    layer.photos({
        photos: '#xsz',
        area: ['60%','auto'],
        shift:7,
        closeBtn:true
    });
    layer.photos({
        photos: '#jsz',
        area: ['60%','auto'],
        shift:7,
        closeBtn:true
    });


});
    